package com.lanmao.mall.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 描述：
 *
 * @author lanmao
 * @date 2023年11月25日 0:30
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVO implements Serializable {
    @Schema(description = "分类id")
    private Long catId;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父分类id")
    private Long parentCid;

    @Schema(description = "层级")
    private Integer catLevel;

    @Schema(description = "是否显示[0-不显示，1显示]")
    private Integer showStatus;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "图标地址")
    private String icon;

    @Schema(description = "计量单位")
    private String productUnit;

    @Schema(description = "商品数量")
    private Integer productCount;

    @Schema(description = "children")
    private List<CategoryVO> children;
}
